package mapper;


import pojo.Student;

import java.util.List;

public interface StudentMapper {

    public void add(String username,String password,String name,String sex,int age,String hobbies,String photo);

    public void delete(String username);

    public void update(String username,String newPassword);

    public void update(String username,String name,String sex,int age,String hobbies);

    public void update(String username,String name,String sex,int age,String hobbies,String photo);

    public Student getStudent(String username);

    public Student getStudent(String username,String password);

    public List<Student> getStudents(int offset, int count);

    public int getAllCount();
}
